package com.ssy.lingxi.platform.manage.controller.mobile;

import com.ssy.lingxi.common.controller.BaseController;
import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.platform.manage.entity.content.MemberColumn;
import com.ssy.lingxi.platform.manage.service.mobile.IMemberColumnMobileService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @menu mobile - 自营商家 - 栏目
 * @author fhj
 * @version 2.0.0
 * @date 2021/10/25
 */
@Api(tags = "mobile - 自营商家 - 栏目")
@RestController
@RequestMapping("/manage/mobile/memberColumnMobile")
public class MemberColumnMobileController extends BaseController {

    @Resource
    private IMemberColumnMobileService memberColumnMobileService;

    @ApiOperation(value = "所有")
    @GetMapping(value = "/all")
    public Wrapper<List<MemberColumn>> all(Long memberId, Long roleId) {
        return memberColumnMobileService.all(memberId, roleId);
    }
}
